package com.devframe.web.util.json;

import java.util.HashMap;
import java.util.Map;

public class MyMapResult {
	Map<String,Object> rsMap=new HashMap<String,Object>();
	public MyMapResult(boolean flag){
		rsMap.put("flag", flag);
	}
	public MyMapResult setFlag(boolean flag){
		rsMap.put("flag", flag);
		return this;
	}
	public MyMapResult setMsg(String msg){
		rsMap.put("msg", msg);
		return this;
	}	
	public MyMapResult put(String key ,Object val){
		rsMap.put(key, val);
		return this;
	}
	public Map<String,Object> end(){
		return rsMap;
	}
}
